package com.atguigu.guli.service.statistics.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author dyqstart
 * @create 2021-07-20-19:46
 * @since 1.0.0
 */
@Slf4j
@Component
public class ScheduledTask {

    /**
     * 测试
     */
    //@Scheduled(cron = "0/3 * * * * *")//每隔3秒执行一次
    public void task1(){
        log.info("task1 执行");
    }
}
